package ooday05;

public class GetterSetterDemo {
    public static void main(String[] args) {
//        Point p=new Point();
//        p.setX(100);
//        p.setY(10000);
//        System.out.println(p.getX()+","+p.getY());
        Point p=new Point();
        p.setA1(100);
        p.setA2(600);
        System.out.println(p.getA1()+","+p.getA2());
    }
}
